<div class="left">
	<div class="hout_nav">
		{if $Think.session.type==1}
		<div class="navitem">
			<div class="bt">
				<span class="iconfont icon-yonghu"></span>
				<span>账户中心</span>
			</div>
			<ul class="navlist">
				<li {if condition="$action eq 'index' " }class="active"{/if} >
					<a href="{:url('index/index')}">基本信息</a>
				</li>
				{if $Think.session.user_level==1}
				<li {if condition="$action eq 'index_oem_set' " }class="active"{/if} >
					<a href="{:url('index/index_oem_set')}">平台设置</a>
				</li>
				<li {if condition="$action eq 'oem_set_category' " }class="active"{/if} >
					<a href="{:url('index/oem_set_category')}">商家分类</a>
				</li>
				{/if}
			</ul>
		</div>
		{/if}
		{if $Think.session.user_level!=4}
		<div class="navitem">
			<div class="bt">
				<span class="iconfont icon-yonghu"></span>
				<span>营销工具</span>
			</div>
			<ul class="navlist">
				<li {if condition="$action eq 'qr_code' " }class="active"{/if}>
					<a href="{:url('accounts/qr_code')}">二维码管理</a>
				</li>
			</ul>
			{if $Think.session.user_level==1}
			<ul class="navlist">
				<li {if condition="$action eq 'pay_api' " }class="active"{/if}>
					<a href="{:url('index/pay_api')}">定制化对接</a>
				</li>
			</ul>
			<ul class="navlist">
					<li {if condition="$action eq 'pay_agent_api' " }class="active"{/if}>
						<a href="{:url('index/pay_agent_api')}">对接商家</a>
					</li>
			</ul>
			{/if}
		</div>
		{/if}
		<div class="navitem">
			<div class="bt">
				<span class="iconfont icon-huiyuan"></span>
				<span>账号管理</span>
			</div>
			<ul class="navlist">
				{if $Think.session.user_level==1}
				<li {if condition="$action eq 'agency_id' " }class="active"{/if} >
					<a href="{:url('accounts/agency_id')}">省级代理商</a>
				</li>
				{/if}
				{if $Think.session.user_level==1 || $Think.session.user_level==4}
				<li {if condition="$action eq 'agency_id1' " }class="active"{/if} >
					<a href="{:url('accounts/agency_id1')}">市级代理商</a>
				</li>
				{/if}
				{if $Think.session.user_level==2 || $Think.session.user_level==1 || $Think.session.user_level==4}
				<li {if condition="$action eq 'agency_id2' " }class="active"{/if} >
					<a href="{:url('accounts/agency_id2')}">区域运营商</a>
				</li>
				{/if}
				<li {if condition="$action eq 'pt_user' " }class="active"{/if} >
					<a href="{:url('accounts/pt_user')}">市场专员</a>
				</li>			
				<li {if condition="$action eq 'agent' " }class="active"{/if} >
					<a href="{:url('accounts/agent')}">商家列表</a>
				</li>
				<!--{if $Think.session.user_level==2||$Think.session.user_level==3}
				<li {if condition="$action eq 'agentsq' " }class="active"{/if} >
					<a href="{:url('accounts/agentsq')}">商家申请列表</a>
				</li>-->
				<!-- {if $Think.session.user_level==1&&$Think.config.oepn_sq==1}
				<li {if condition="$action eq 'union_sh' " }class="active"{/if} >
					<a href="{:url('accounts/union_sh')}">联盟审核</a>
				</li>
				{/if} -->
				<li {if condition="$action eq 'user' " }class="active"{/if} >
					<a href="{:url('accounts/user')}">会员列表</a>
				</li>
			</ul>
		</div>
		<div class="navitem">
			<div class="bt">
				<span class="iconfont icon-shujuzhongxin"></span>
				<span>数据分析</span>
			</div>
			<ul class="navlist">
				<li {if condition="$action eq 'summary' || $action eq 'agency_record' || $action eq 'city_record' || $action eq 'agent_record' || $action eq 'user_record'" }class="active"{/if} >
					<a href="{:url('count/summary')}">汇总查询</a>
				</li>
				<!--<li {if condition="$action eq 'detailed' " }class="active"{/if} >
					{if $Think.session.user_level==1}
					<a href="{:url('count/detailed')}">明细查询</a>					
					{elseif $Think.session.user_level==2}
					<a href="{:url('count/detailed')}">明细查询</a>	
					{/if}
				</li>-->
				<li {if condition="$action eq 'detailed' " }class="active"{/if} >					
					<a href="{:url('count/detailed')}">明细查询</a>				
				</li>
				<!--{if $Think.session.user_level==1}
				<li {if condition="$action eq 'commission' " }class="active"{/if} >
					<a href="{:url('count/commission')}">佣金报表</a>
				</li>
				{/if}-->
				
				<li {if condition="$action eq 'coupons' " }class="active"{/if} >
					<a href="{:url('count/coupons')}">电子优惠劵报表</a>
				</li>
				{if $Think.session.user_level==1}
				<!--<li {if condition="$action eq 'agent_bankinfo' || $action eq 'qianyue_step' || $action eq 'qianyue_step1' || $action eq 'qianyue_step2' || $action eq 'qianyue_step3' || $action eq 'qianyue_step4' || $action eq 'qianyue_step5'" }class="active"{/if} >
					<a href="{:url('count/agent_bankinfo')}">商家资质</a>
				</li>-->
				<!--<li {if condition="$action eq 'agent_limited' " }class="active"{/if} >
					<a href="{:url('count/agent_limited')}">商家年审</a>
				</li>-->
				{/if}
			</ul>
		</div>
		
		{if $Think.session.user_level==1}
		<div class="navitem">
			<div class="bt">
				<span class="iconfont icon-xinxizhongxin"></span>
				<span>系统中心</span>
			</div>
			<ul class="navlist">
				<li {if condition="$action eq 'service'"}class="active"{/if} >
					<a href="{:url('helps/service')}">服务协议</a>
				</li>
				<li {if condition="$action eq 'center'"}class="active"{/if} >
					<a href="{:url('helps/center')}">帮助中心</a>
				</li>
				<!--<li {if condition="($action eq 'notice') or ($action eq 'notice_show')" }class="active"{/if} >
					<a href="{:url('helps/notice')}">平台公告</a>
				</li>
				<li {if condition="($action eq 'helps') or ($action eq 'helps_show')" }class="active"{/if} >
					<a href="{:url('helps/helps')}">帮助中心</a>
				</li>
				<li {if condition="$action eq 'iteration'" }class="active"{/if} >
					<a href="{:url('helps/iteration')}">更新日志</a>
				</li>-->
				<!--{if condition="$Think.session.user_level eq 1 " }
				<li {if condition="$action eq 'iteration'" }class="active"{/if} >
					<a href="{:url('helps/contact')}">联系我们</a>
				</li>
				{/if}-->
			</ul>
		</div>
		{/if}
<!--		
		{if condition="$Think.session.user_level eq 1 " }
		<div class="navitem">
			<div class="bt">
				<span class="iconfont icon-xinxizhongxin"></span>
				<span>蓝海行动</span>
			</div>
			<ul class="navlist">
				<li {if condition="$action eq 'indexs'" }class="active"{/if} >
					<a href="{:url('bluesea/indexs')}">分享会员列表</a>
				</li>
				<li {if condition="$action eq 'money_reward'" } class="active"{/if} >
					<a href="{:url('bluesea/money_reward')}">赏金明细</a>
				</li>
				<li {if condition="$action eq 'count_balance'" } class="active"{/if} >
					<a href="{:url('bluesea/count_balance')}">总鼓励金账户日志</a>
				</li>
			</ul>
		</div>
		{/if}-->

	</div>
</div>
